From 513a304d7ef388627749b84ef486e3539512e125 Mon Sep 17 00:00:00 2001 From: "mjw@wray-m-3.hpl.hp.com" Date: Thu, 30 Sep 2004 11:11:17 +0000 Subject: [PATCH] bitkeeper revision 1.1159.90.2 (415be9d5hTw1zLV9fA-AYcekmwhMwg) Discard devices early for local migrate. --- tools/python/xen/xend/XendMigrate.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/python/xen/xend/XendMigrate.py b/tools/python/xen/xend/XendMigrate.py index 36929c8b15..9c235e8700 100644 --- a/tools/python/xen/xend/XendMigrate.py +++ b/tools/python/xen/xend/XendMigrate.py @@ -295,6 +295,11 @@ class XendMigrateInfo(XfrdInfo): eserver.inject('xend.domain.migrate', [ self.dominfo.name, self.dominfo.id, "begin", self.sxpr() ]) + # Special case for localhost: destroy all devices early. + if 0 and self.dst_host in ["localhost", "127.0.0.1"]: + self.dominfo.restart_cancel() + self.dominfo.cleanup() + #self.dominfo.destroy_console() xfrd.request(['xfr.migrate', self.src_dom, vmconfig, -- 2.30.2